libxc: Use a single mmap interface to Linux
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Jul 2009 09:58:06 +0000 (10:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Jul 2009 09:58:06 +0000 (10:58 +0100)
commit07a34def028cf0737533b834a0e29f0ce639d9ea
treea700f2b72fdb665876369567b2140b823ee934db
parent787d3b69de1e4619caafc2ff9884b47746eaa91f
libxc: Use a single mmap interface to Linux

Modify xc_map_foreign_range and xc_map_foreign_ranges to call
mmap_map_foreign_batch. This eliminates the need for multiple privcmd
mmap ioctls. Now only IOCTL_PRIVCMD_MMAPBATCH is required.

Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
tools/libxc/xc_linux.c